how split method works in java